<template>
	<view class="container">
		<view class="background">
			<view class="city">
				<text style="color: white; font-size: 26rpx;">{{city}}</text>
				<image src="../../static/三角_下.png" mode=""></image>
				<view class="weather">
					<text style="color: #fff; font-size: 20rpx;">{{weather}} &nbsp;{{du}}</text>
					<image src="../../static/多云 (1).png" mode=""></image>
				</view>
			</view>
		</view>
		<view class="jieshao">
			<text style="font-size: 24rpx;">“城在海上，海在城中”，厦门是中国的海上花园，四季如
				春，风景秀丽。岛、礁、寺、花、木相互映衬，侨乡风情、
				美食、异国建筑在厦门融为一体。厦门的公共交通很方便，
				在岛上也可以选择骑单车。”</text>
		</view>
		<view class="attraction">
			<view class="title">
				<text>景点游玩</text>
			</view>
			<view class="right-title">
				<text>手绘地图</text>
				<text>距离</text>
				<text>热度</text>
			</view>
		</view>
		<view class="contant"   v-for="(item,index) in text" :key="index">
			<view class="contant-1" @tap="PagetoMap">
				<!-- 左侧图片 -->
				<view class="image">
					<image src="../../static/图片.png" mode=""></image>
				</view>
				<!-- 右侧文字 -->
				<view class="text">
					<view class="title">
						<text style="">{{item.title}}</text>
					</view>
					<view class="body">
						<text style="font-size: 20rpx;">{{item.body}}</text>
					</view>
					<view class="double">
						<view class="address">
							<text style="font-size: 24rpx;">{{item.address}}</text>
						</view>
						<view class="talk">
							<text style="font-size: 24rpx;">{{item.talk}}</text>
						</view>
					</view>
					<view class="juli-listen">
						<view class="juli">
							<image src="../../static/定位.png" mode=""></image>
							<text style="font-size: 24rpx;">{{item.juli}}</text>
						</view>
						<view class="listen">
							<image src="../../static/耳机-F.png" mode=""></image>
							<text style="font-size: 24rpx;">{{item.listen}}</text>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				city: '厦门市',
				weather: '晴天',
				du: '25℃~27℃',
				text: [
					{
						title:'厦门嘉庚公园',
						body:'福建省厦门市集美区鳌园路24号(近集美学村东南角海滨) ',
						address:'公园',
						talk:'7个讲解点',
						juli:'据您2.1km',
						listen:'2563个人听讲解'
					},
					{
						title:'厦门嘉庚公园',
						body:'福建省厦门市集美区鳌园路24号(近集美学村东南角海滨) ',
						address:'公园',
						talk:'7个讲解点',
						juli:'据您2.1km',
						listen:'2563个人听讲解'
					},
					{
						title:'厦门嘉庚公园',
						body:'福建省厦门市集美区鳌园路24号(近集美学村东南角海滨) ',
						address:'公园',
						talk:'7个讲解点',
						juli:'据您2.1km',
						listen:'2563个人听讲解'
					},
					{
						title:'厦门嘉庚公园',
						body:'福建省厦门市集美区鳌园路24号(近集美学村东南角海滨) ',
						address:'公园',
						talk:'7个讲解点', 
						juli:'据您2.1km',
						listen:'2563个人听讲解'
					}
				]
			};
		},
		methods:{
			PagetoMap(){
				uni.navigateTo({
					url:'/pages/sousuo/map'
				})
			}
		}
	}
</script>

<style lang="scss">
	.container {
		.text{
			margin-left: 15rpx;
		}
		.contant{
			.contant-1{
				.juli-listen{
					.juli{
						image{
							width: 25rpx;
							height: 25rpx;
						}
						margin-top: 10rpx;
					}
					.listen{
						image{
							width: 25rpx;
							height: 25rpx;
						}
						margin-top: 10rpx;
					}
					width: 380rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
				}
				.double{
					.address{
						width: 110rpx;
						height: 30rpx;
						display: flex;
						align-items: center;
						justify-content: center;
						background-color: #f2f2f4;
						border: 1px solid black;
					}
					.talk{
						display: flex;
						align-items: center;
						justify-content: center;
						width: 150rpx;
						height: 30rpx;
						background-color:#f2f2f4;
						border-radius: 50px;
						border: 1px solid black;
					}
					width: 280rpx;
					display: flex;
					align-items: center;
					justify-content: space-between;
				}
				.image{
					image{
						border-radius: 10rpx;
						width: 60rpx;
						height: 60rpx;
					}
					display: flex;
					justify-content: center;
					align-items: center;
					margin-left: 20rpx;
					width: 220rpx;
					height: 180rpx;
					background-color: #f2f2f4;
					border-radius: 20rpx;
				}
				display: flex;
				align-items: center;
				margin-top:20rpx ;
				width: 100%;
				height: 220rpx;
				background-color: #fff;
				border-radius: 20rpx;
			}
			display: flex;
			margin: auto;
			height: 250rpx;
			width: 97%;
		}
		.attraction{
			.right-title{
				text{
					font-size: 24rpx;
					margin-left: 20rpx;
				}
			}
			width: 97%;
			display: flex;
			justify-content: space-between;
			margin: auto;
			margin-top: 60rpx;
		}
		.jieshao {
			display: flex;
			justify-content: center;
			align-items: center;
			margin: auto;
			margin-top: -190rpx;
			width: 680rpx;
			height: 160rpx;
			background-color: #f2f2f2;
			border-radius: 20rpx;
		}

		.background {
			.city {
				.weather {
					image {
						margin-top: -2rpx;
					}

					display: flex;
					margin-top: 40rpx;
					margin-left: -104rpx;
				}

				image {
					margin-left: 5rpx;
					margin-top: 10rpx;
					width: 26rpx;
					height: 26rpx;
				}

				display: flex;
				margin-left: 40rpx;
				margin-top: 220rpx;
				height: 40rpx;
			}

			display: flex;
			width: 97%;
			height: 500rpx;
			margin: auto;
			background-color: #9a999c;
		}

		margin: auto;
		height: 2000rpx;
		background-color: #f2f6f7;
	}
</style>